﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SolidworksDLL
{
    public class TestSW
    {

        /// <summary>
        /// 输出SolidWorks版本
        /// </summary>
        /// <returns></returns>
        public static string GetVer()
        {
            return SolidWorksHelp.swApp.RevisionNumber();

        }

        /// <summary>
        /// 获取SolidWorks程序路径
        /// </summary>
        /// <returns></returns>
        public static string GetPath()
        {
            return SolidWorksHelp.swApp.GetExecutablePath() + @"\sldworks.exe";

        }

        /// <summary>
        /// 设定SolidWorks状态
        /// </summary>
        /// <param name="state">1最大化2最小化</param>
        public static void MakeWindowsSate(int state)
        {
            //
            SolidWorksHelp.swApp.FrameState = state;
        }
    }
}

